package com.chaos.auth.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.AutoIdModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

/**
 *
 * @author Jacky.Cui
 * @since 2024-12-03
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper =false)
@Accessors(chain = true)
@TableName("rbac_menu")
@ApiModel(value="RbacMenu实体", description="菜单")
public class RbacMenu extends AutoIdModel {


    @ApiModelProperty(value = "路由名称")
    @TableField("component")
    private String component;


    @ApiModelProperty(value = "图标")
    @TableField("icon")
    private String icon;


    @ApiModelProperty(value = "重定向路径")
    @TableField("redirect")
    private String redirect;


    @ApiModelProperty(value = "是否精确匹配 1：是，0否")
    @TableField("exact")
    private boolean exact;


    @ApiModelProperty(value = "路由路径")
    @TableField("path")
    private String path;


    @ApiModelProperty(value = "路由名称")
    @TableField("name")
    private String name;


    @ApiModelProperty(value = "名称")
    @TableField("cn_name")
    private String cnName;


    @ApiModelProperty(value = "父级id")
    @TableField("parent_id")
    private Long parentId;


    @ApiModelProperty(value = "菜单类型")
    @TableField("menu_type")
    private Integer menuType;


    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;


}
